import { DtoValidation } from '@/modules/core/decorators/dto-validation.decorator';
import { CommonPaginationServiceDto } from '@/modules/core/dto/pagination.dto';
import { IsOptional, IsString } from 'class-validator';

@DtoValidation({ type: 'query' })
export class FilterGoods extends CommonPaginationServiceDto {
  @IsOptional()
  @IsString()
  name: string;

  @IsOptional({ always: true })
  category: string;
}
